home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / CodeWarrior Lite / Metrowerks C⁄C++ Lite / Headers / Universal Headers 2.0.1f / FileTransferTools.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-22  |  2.9 KB  |  135 lines  |  [TEXT/MMCC]

  1. /*
  2.      File:        FileTransferTools.h
  3.  
  4.      Contains:    CommToolbox File Transfer Tools Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.0 in “MPW Latest” on ETO #17
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. */
  19.  
  20. #ifndef __FILETRANSFERTOOLS__
  21. #define __FILETRANSFERTOOLS__
  22.  
  23.  
  24. #ifndef __DIALOGS__
  25. #include <Dialogs.h>
  26. #endif
  27. /*    #include <Errors.h>                                            */
  28. /*        #include <ConditionalMacros.h>                            */
  29. /*    #include <Memory.h>                                            */
  30. /*        #include <Types.h>                                        */
  31. /*        #include <MixedMode.h>                                    */
  32. /*    #include <Windows.h>                                        */
  33. /*        #include <Quickdraw.h>                                    */
  34. /*            #include <QuickdrawText.h>                            */
  35. /*        #include <Events.h>                                        */
  36. /*            #include <OSUtils.h>                                */
  37. /*        #include <Controls.h>                                    */
  38. /*            #include <Menus.h>                                    */
  39. /*    #include <TextEdit.h>                                        */
  40.  
  41. #ifndef __FILETRANSFERS__
  42. #include <FileTransfers.h>
  43. #endif
  44. /*    #include <CTBUtilities.h>                                    */
  45. /*        #include <StandardFile.h>                                */
  46. /*            #include <Files.h>                                    */
  47. /*        #include <AppleTalk.h>                                    */
  48. /*    #include <Connections.h>                                    */
  49. /*    #include <Terminals.h>                                        */
  50.  
  51. #ifdef __cplusplus
  52. extern "C" {
  53. #endif
  54.  
  55. #if PRAGMA_ALIGN_SUPPORTED
  56. #pragma options align=mac68k
  57. #endif
  58.  
  59. #if PRAGMA_IMPORT_SUPPORTED
  60. #pragma import on
  61. #endif
  62.  
  63.  
  64. enum {
  65. /* DEFs */
  66.     fdefType                    = 'fdef',
  67.     fsetType                    = 'fset',
  68.     fvalType                    = 'fval',
  69.     flocType                    = 'floc',
  70.     fscrType                    = 'fscr',
  71.     fbndType                    = 'fbnd',
  72.     fverType                    = 'vers'
  73. };
  74.  
  75. enum {
  76. /* control */
  77.     ftInitMsg                    = 0,
  78.     ftDisposeMsg                = 1,
  79.     ftSuspendMsg                = 2,
  80.     ftResumeMsg                    = 3,
  81.     ftMenuMsg                    = 4,
  82.     ftEventMsg                    = 5,
  83.     ftActivateMsg                = 6,
  84.     ftDeactivateMsg                = 7,
  85.     ftGetErrorStringMsg            = 8,
  86.     ftAbortMsg                    = 52,
  87.     ftStartMsg                    = 100,
  88.     ftExecMsg                    = 102,
  89.     ftSendMsg                    = 103,
  90.     ftReceiveMsg                = 104,
  91. /* setup */
  92.     ftSpreflightMsg                = 0,
  93.     ftSsetupMsg                    = 1,
  94.     ftSitemMsg                    = 2,
  95.     ftSfilterMsg                = 3,
  96.     ftScleanupMsg                = 4,
  97. /* validate */
  98.     ftValidateMsg                = 0
  99. };
  100.  
  101. enum {
  102.     ftDefaultMsg                = 1,
  103. /* scripting */
  104.     ftMgetMsg                    = 0,
  105.     ftMsetMsg                    = 1,
  106. /* localization */
  107.     ftL2English                    = 0,
  108.     ftL2Intl                    = 1
  109. };
  110.  
  111. struct FTSetupStruct {
  112.     DialogPtr                        theDialog;                    /* the dialog form the application */
  113.     short                            count;                        /* first appended item */
  114.     Ptr                                theConfig;                    /* the config record to setup */
  115.     short                            procID;                        /* procID of the tool */
  116. };
  117. typedef struct FTSetupStruct FTSetupStruct;
  118.  
  119. typedef FTSetupStruct *FTSetupPtr;
  120.  
  121.  
  122. #if PRAGMA_IMPORT_SUPPORTED
  123. #pragma import off
  124. #endif
  125.  
  126. #if PRAGMA_ALIGN_SUPPORTED
  127. #pragma options align=reset
  128. #endif
  129.  
  130. #ifdef __cplusplus
  131. }
  132. #endif
  133.  
  134. #endif /* __FILETRANSFERTOOLS__ */
  135.